package com.eastfair.home.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.eastfair.boot.request.PageParams;
import com.eastfair.core.base.R;
import com.eastfair.venueservice.dto.ServiceLossDTO;
import com.eastfair.venueservice.vo.ServiceLossVO;

import java.util.Map;

/**
 * 物资报损 service.
 *
 * @author dqq
 * @date 2022 /9/22
 */
public interface HomeServiceLossService {

    /**
     * 分页查询报损记录VO列表.
     *
     * @param pageParams the page params
     * @return the r
     */
    Page<ServiceLossVO> queryServiceLoss(PageParams<ServiceLossDTO> pageParams);

    /**
     * 返修入库.
     *
     * @param serviceLossDTO the service loss dto
     * @return the r
     */
    boolean repairInInventory(ServiceLossDTO serviceLossDTO);

    /**
     * 报损类型统计.
     *
     * @param serviceLossDTO the service loss dto
     * @return the r
     */
    Map<String, Object> countLossNum(ServiceLossDTO serviceLossDTO);
}